import request from "../../../utils/request"


export interface AnyObjType {
  [key:string]:any
}

export interface DataType {
  id:number,
  [key:string]:any
}

const chartsApi = {
  /* 获取排行分类列表数据 */
  getChartsTitleList(){
    return request.get<any,AnyObjType>(`/revision/rank/v4/rankTabs?sceneId=${1}`)
  },

  /* 获取排行分类商品列表 */
  getChartsGoodsList(rankingId:number){
    return request.get<any,AnyObjType>(`/revision/rank/v4/element?rankingId=${rankingId}`)
  }
}

export default chartsApi;